package packet;

import java.io.Serializable;

import sql.AskOldmanLocation;
import sql.selectOldmanLocation;
import TCP.Communication.CommunicationServer;
import TCP.Communication.LinkerClient;
import TCP.Communication.LinkerServer;
import TCP.Packet.sys.Packet_i;

public class AskLocation implements Packet_i, Serializable {

	public int id;
	private String oldNetid;

	@Override
	public void runOnServer(LinkerServer ls) {
		if(id==1){
		 oldNetid="old1";
		}
		
		CommunicationServer.cs.sendTo指定名稱(ls, this, new String[] { oldNetid });
		System.out.println("ask old location");

	}

	@Override
	public void runOnClient(LinkerClient lc) {
		AskOldmanLocation a = new AskOldmanLocation();
		a.askLocation();

	}
}
